import { defineStore } from "pinia";
import { ref } from "vue";

export const ItemShopStore = defineStore(
  "ItemShop",
  () => {
    const IdtStatus = ref("item");
    const shopOrderInfo = ref();
    const ItemStatus = () => {
      IdtStatus.value = "item";
    };
    const ShopStatus = () => {
      IdtStatus.value = "shop";
    };

    return { IdtStatus, ShopStatus, ItemStatus, shopOrderInfo };
  },
  {
    persist: true,
  }
);
